package org.jackysoft.struts2;
import java.util.Collection;

import javax.annotation.Resource;

import org.apache.struts2.convention.annotation.Namespace;
import org.jackysoft.entity.LoginPage;
import org.jackysoft.service.LoginPageService;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.context.annotation.Scope;


@Namespace("/loginpage")
@Scope(BeanDefinition.SCOPE_PROTOTYPE)
public class LoginPageAction 
extends UtilsCRUDAction<LoginPage> {
	/**
	 * 
	 */
	private static final long serialVersionUID = 3066490215417776947L;
	private LoginPageService service;
	private LoginPage bean;
	private Collection<LoginPage> beans;
	
	
	
	public void setBean(LoginPage bean){
	     this.bean = bean;
	}
	public LoginPage getBean(){
	     return this.bean;
	}
	public void setBeans(Collection<LoginPage> beans){
	
	     this.beans = beans;
	}
	public Collection<LoginPage> getBeans(){
	     return this.beans;
	}
	
	@Resource
	public void setService(LoginPageService service) {
		this.service = service;
		this.setDataProvider(service);
	}	
	
	public LoginPageService getService(){
	   return this.service;
	}
		
}